# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-saturn
pkgver=0_git20220417
pkgrel=0
_commit="dd18f9c477106263b3b7b050f4970d331ff7b23a"
pkgdesc="standalone port of Mednafen Saturn to the libretro API"
url="https://github.com/libretro/beetle-saturn-libretro"
arch="all"
license="GPL-2.0-only"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-saturn-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-saturn-libretro-$_commit"
options="!check" # No tests

build() {
	rm -rf deps/zlib*
	make SYSTEM_ZLIB=1
}

package() {
	install -Dm644 mednafen_saturn_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_saturn_libretro.so
}

sha512sums="
0e3c06b5f92f4bac0c0cebb38c345b7bbd7e2fbcdfc713c727f73f738d0f99e204fd3e5d312354c2387b5234cd7d0c74a61e876657a9b26e62af91bac52bf9f6  libretro-beetle-saturn-dd18f9c477106263b3b7b050f4970d331ff7b23a.tar.gz
"
